package com.zhenhao.xsq;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import com.zhenhao.xsq.netsdk_demo.CLocalDevLogin;
import com.zhenhao.xsq.netsdk_demo.GSYVideoPlayActivity;
import com.zhenhao.xsq.utils.TimeUtil;

import java.util.Locale;

import androidx.appcompat.app.AppCompatActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {

    private String TAG = "MainActivity";

    @BindView(R.id.tv)
    TextView tv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);

       /* String time1 = TimeUtil.timesTamp(Long.valueOf("1725596308000"),"yyyy-MM-dd HH:mm:ss", Locale.getDefault());//2024-9-6 12:18:28
        String time2 = TimeUtil.timesTamp(Long.valueOf("1725607191000"),"yyyy-MM-dd HH:mm:ss",Locale.getDefault());//2024-9-6 15:19:51
        long temp = 1725607191-1725596308;
        Log.e(TAG, "time " + time1 + "," + time2);

        long l1 = TimeUtil.timeStamp("2024-9-6 12:18:28", "yyyy-MM-dd HH:mm:ss");
        long l2 = TimeUtil.timeStamp("2024-9-6 15:19:51", "yyyy-MM-dd HH:mm:ss");
        Log.e(TAG, "l " + l1 + "," + l2);*/
    }

    @OnClick(R.id.tv)
    public void onViewClicked() {
        Intent intent = new Intent(this, CLocalDevLogin.class);
//        Intent intent = new Intent(this, GSYVideoPlayActivity.class);
        startActivity(intent);
//        String time1 = TimeUtil.timesTamp(Long.valueOf("1725596308000"),"yyyy-MM-dd HH:mm:ss",Locale.getDefault());//2024-9-6 12:18:28
//        String time2 = TimeUtil.timesTamp(Long.valueOf("1725607191000"),"yyyy-MM-dd HH:mm:ss",Locale.getDefault());//2024-9-6 15:19:51
//        long temp = 1725607191-1725596308;
//        Log.e(TAG, "" + time1 + "," + time2);
    }

}
